package com.fortune.dto.in.mStoreInit;

import io.swagger.annotations.ApiModelProperty;
import org.hibernate.validator.constraints.NotBlank;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * TODO m_init_base_info
 * @author ran
 *
 */
public class MStoreInitProduceDto {
    @NotBlank(message="商品ID不能为空")
    @ApiModelProperty(example="商品ID")
    private String mpid;
    @NotNull(message="初始化数量不能为空")
    @Min(value = 0,message = "最小值为0")
    @ApiModelProperty(example="初始化数量")
    private int num;
    @NotNull(message="序号不能为空")
    @Min(value = 1,message = "最小值为1")
    @ApiModelProperty(example="序号")
    private int no;

    public String getMpid() {
        return mpid;
    }

    public void setMpid(String mpid) {
        this.mpid = mpid;
    }

    public int getNum() {
        return num;
    }

    public void setNum(int num) {
        this.num = num;
    }

    public int getNo() {
        return no;
    }

    public void setNo(int no) {
        this.no = no;
    }

    @Override
    public String toString() {
        return "MStoreInitProduceDto{" +
                "mpid='" + mpid + '\'' +
                ", num=" + num +
                ", no=" + no +
                '}';
    }
}
